# -*- coding: utf-8 -*-

from django.db import models
from app_module.models import table_prefix


class MenuModel(models.Model):
    menu_id = models.AutoField(primary_key=True, verbose_name='主键')
    menu_name = models.CharField(max_length=128, verbose_name='名称', )

    class Meta:
        db_table = table_prefix + 'menu'
        verbose_name = '菜单'
        verbose_name_plural = verbose_name

        pass


class RoleModel(models.Model):
    role_id = models.AutoField(primary_key=True, verbose_name='主键')
    role_name = models.CharField(max_length=128, verbose_name='名称', )

    class Meta:
        db_table = table_prefix + ' role'
        verbose_name = '角色'
        verbose_name_plural = verbose_name
        pass
